package org.code.mallspringboot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.code.mallspringboot.pojo.UmsMemberReceiveAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Entity org.code.mallspringboot.pojo.UmsMemberReceiveAddress
 */
@Mapper
public interface UmsMemberReceiveAddressMapper {

    /**
     根据 memberId 查询
     * @param memberId
     * @return
     */
    List<UmsMemberReceiveAddress> selectByMemberId(@Param("memberId") int memberId);

    /**
     删除
     * @param id
     * @return
     */
    int delete(@Param("id") int id);

    /**
     添加
     * @param umsMemberReceiveAddress
     * @return
     */
    int add(UmsMemberReceiveAddress umsMemberReceiveAddress);

    /**
     编辑回显
     * @param id
     * @return
     */
    UmsMemberReceiveAddress fetchAddressDetail(@Param("id") int id);

    /**
     修改
     * @param umsMemberReceiveAddress
     * @return
     */
    int updateAddress(UmsMemberReceiveAddress umsMemberReceiveAddress);
}




